<div class="row animated" ng-class="{true: 'fadeInRight', false:'fadeInLeft'}[currentAnimated]">
  <div class="panel panel-default">
    <div class="panel-heading">
      <a ng-click="discard()" href="javascript:;"><i class="backBtn fa fa-arrow-circle-left"></i></a>
      <span class="panelTitle" ng-bind="SeckillForm.title"></span>
    </div>
    <div class="panel-body">
      <form novalidate name="seckillForm" class="form-horizontal" role="form">
        <div class="form-group" ng-class="{'has-error': seckillForm.name.$invalid && seckillForm.name.$dirty}">
          <label class="control-label col-xs-3 col-md-2">秒杀商品：</label>
          <div class="col-xs-7 col-md-8">
            <input type="text" class="form-control w25c fl" readonly="readonly" name="goodsId" placeholder="秒杀商品" ng-model="seckill.goodsId" required>
            <button class="btn btn-primary fl" data-toggle="modal" data-target="#chooseProductModal">选择商品</button>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error': seckillForm.name.$invalid && seckillForm.name.$dirty}">
          <label class="control-label col-xs-3 col-md-2">秒杀名称：</label>
          <div class="col-xs-7 col-md-8">
            <input type="text" class="form-control w50c" name="name" placeholder="秒杀名称" ng-model="seckill.name" required>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error': seckillForm.price.$invalid && seckillForm.price.$dirty}">
          <label class="control-label col-xs-3 col-md-2">市场价：</label>
          <div class="col-xs-7 col-md-8">
            <input type="number" class="form-control w25c" name="price" placeholder="市场价" ng-model="seckill.price" required>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error': seckillForm.killPrice.$invalid && seckillForm.killPrice.$dirty}">
          <label class="control-label col-xs-3 col-md-2">秒杀价：</label>
          <div class="col-xs-7 col-md-8">
            <input type="number" class="form-control w25c" name="killPrice" placeholder="秒杀价" ng-model="seckill.killPrice" required>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error': seckillForm.number.$invalid && seckillForm.number.$dirty}">
          <label class="control-label col-xs-3 col-md-2">库存：</label>
          <div class="col-xs-7 col-md-8">
            <input type="number" class="form-control w25c" name="number" placeholder="商品库存" ng-model="seckill.number" required>
          </div>
        </div>
        <div class="form-group" ng-class="{'has-error': seckillForm.startTime.$invalid && seckillForm.startTime.$dirty}">
          <label class="control-label col-xs-3 col-md-2">起止时间：</label>
          <div class="col-xs-7 col-md-8">
            <input type="text" class="form-control w25c fl" name="startTime" id="startTime" itime placeholder="开始时间" ng-model="seckill.startTime" required> <span class="to fl">至</span> <input type="text" class="form-control w25c fl" name="endTime" id="endTime" itime placeholder="结束时间" ng-model="seckill.endTime" required>
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-xs-3 col-md-2">产品图：</label>
          <div class="col-xs-7 col-md-8">
            <div class="button btn btn-primary fl" ngf-select="upload($file)" ngf-pattern="'image/*'"
              ngf-accept="'image/*'" ngf-max-size="10MB">上传图片</div>
            <a href="javascript:void(0)" class="btn btn-info ml15" ng-click="openPhotoLibs()">图片库</a><span class="clearfix"></span>
            <bannerlist></bannerlist>
          </div>
        </div>
        <div class="form-group">
          <div class="col-xs-4 col-xs-offset-2">
            <button class="btn btn-primary" ng-click="submitForm()" ng-disabled="seckillForm.$invalid">保存</button>
            <button class="btn btn-white" ng-click="discard()">取消</button>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
<imagepreview></imagepreview>
<upload-task></upload-task>